package cn.haohaowo.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class CommonProperties {
	
	@Value("${jdbc.driver}")
	public String jdbcDriver;
	@Value("${jdbc.url}")
	public String jdbcUrl;
	@Value("${jdbc.uername}")
	public String jdbcUser;
	@Value("${jdbc.password}")
	public String jdbcPassword;
	
	@Value("${redis.address}")
	public String redisAddress;
	@Value("${redis.port}")
	public String redisPort;
	@Value("${redis.timeout}")
	public String redisTimeOut;
	@Value("${redis.transfer.timeout}")
	public String redisTransferTimeOut;
	@Value("${redis.maxRedirections}")
	public String redisMaxRedirections;
	@Value("${redis.password}")
	public String redisPassword;
	
	@Value("{}")
	public String hibernateDia;
	
	
	public String getJdbcDriver() {
		return jdbcDriver;
	}

	public void setJdbcDriver(String jdbcDriver) {
		this.jdbcDriver = jdbcDriver;
	}

	public String getJdbcUrl() {
		return jdbcUrl;
	}

	public void setJdbcUrl(String jdbcUrl) {
		this.jdbcUrl = jdbcUrl;
	}

	public String getJdbcUser() {
		return jdbcUser;
	}

	public void setJdbcUser(String jdbcUser) {
		this.jdbcUser = jdbcUser;
	}

	public String getJdbcPassword() {
		return jdbcPassword;
	}

	public void setJdbcPassword(String jdbcPassword) {
		this.jdbcPassword = jdbcPassword;
	}

	public String getRedisAddress() {
		return redisAddress;
	}

	public void setRedisAddress(String redisAddress) {
		this.redisAddress = redisAddress;
	}

	public String getRedisPort() {
		return redisPort;
	}

	public void setRedisPort(String redisPort) {
		this.redisPort = redisPort;
	}

	public String getRedisTimeOut() {
		return redisTimeOut;
	}

	public void setRedisTimeOut(String redisTimeOut) {
		this.redisTimeOut = redisTimeOut;
	}

	public String getRedisTransferTimeOut() {
		return redisTransferTimeOut;
	}

	public void setRedisTransferTimeOut(String redisTransferTimeOut) {
		this.redisTransferTimeOut = redisTransferTimeOut;
	}

	public String getRedisMaxRedirections() {
		return redisMaxRedirections;
	}

	public void setRedisMaxRedirections(String redisMaxRedirections) {
		this.redisMaxRedirections = redisMaxRedirections;
	}

	public String getRedisPassword() {
		return redisPassword;
	}

	public void setRedisPassword(String redisPassword) {
		this.redisPassword = redisPassword;
	}

}
